<template>
  <div class="blank">
    <router-view>
      <template #default="{ Component, route }">
        <keep-alive :include="cacheList">
          <component
            :is="Component"
            :key="route.fullPath"
          />
        </keep-alive>
      </template>
    </router-view>
  </div>
</template>

<script>
import { computed } from 'vue'
import { useStore } from 'vuex'

export default {
  name: 'Blank',
  setup() {
    const store = useStore()

    const cacheList = computed(() => {
      return store.state.permission.cache
    })

    return {
      cacheList
    }
  }
}
</script>

<style lang="scss" scoped>
.blank {
  position: relative;
  padding: 0px;
  height: 100%;
  box-sizing: border-box;
}
</style>